package com.ggh.service.impl;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.ggh.dao.AirlinesMapper;
import com.ggh.dao.RulesMoneyBeanMapper;
import com.ggh.entity.Ai;
import com.ggh.entity.Airlines;
import com.ggh.entity.RulesMoneyBean;
import com.ggh.service.AirlinesService;
import com.ggh.service.RulesMoneyBeanService;
import com.ggh.vo.Body;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

/**
 * @author ： jsq
 * @date ：2019/10/13 22:24
 * @description : 相关金币
 * @path : com.ggh.service.impl.RulesMoneyBeanServiceImpl
 * @modifiedBy ：
 */
@Service
public class RulesMoneyBeanServiceImpl extends ServiceImpl<RulesMoneyBeanMapper, RulesMoneyBean> implements RulesMoneyBeanService {

    @Override
    public RulesMoneyBean qyRulesMoneyBean(Integer type,Integer money) {
        RulesMoneyBean  rulesMoneyBean= baseMapper.selectOne(new QueryWrapper<RulesMoneyBean>().eq("type", type).eq("bottom_money",money));
        return rulesMoneyBean;
    }
}
